home *** CD-ROM | disk | FTP | other *** search
- // "Rubber" mouse / kbd driven figures like circle, rectangle and line
-
- #ifndef __DIMENTIONS_H
- #define __DIMENTIONS_H
-
- #include "graphpp.h"
- #include "colors.h"
-
- enum { FIXED = 0, MOVE = 1, RESIZE = 2, SCROLL_VERT = 4, SCROLL_HORIZ = 8 };
- enum { FIG_RECTANGLE, FIG_LINE, FIG_CIRCLE, FIG_PCX };
-
- extern rect get_dim(int fig_type, // RECTANGLE, CIRCLE, LINE
- int action_type,
- rect r = rect(0, 0, getmaxx(), getmaxy()), // work area
- rect src = rect(0, 0,
- pScreenSet->cell_width, pScreenSet->cell_height),
- loc minsize = loc(0, 0),
- loc step = loc(pScreenSet->cell_width,
- pScreenSet->cell_height));
-
- #endif __DIMENTIONS_H